project(rv1106_opencv_QR_video)
cmake_minimum_required(VERSION 3.5)
set(CMAKE_CXX_STANDARD 11)

SET(CMAKE_C_COMPILER "/home/waf/project/luckfox-pico/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-gcc")
SET(CMAKE_CXX_COMPILER "/home/waf/project/luckfox-pico/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-g++")

set(OpenCV_DIR "${CMAKE_CURRENT_SOURCE_DIR}/opencv-mobile-4.8.1-luckfox-pico/lib/cmake/opencv4")
set(Include_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include")
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${Include_INCLUDE_DIRS})



add_executable(rv1106_opencv_QR_video rv1106_opencv_QR_video.cpp)

target_link_libraries(${PROJECT_NAME}   ${OpenCV_LIBS})
target_link_libraries(${PROJECT_NAME}   ${Include_LIBS})

# 添加 -lpthread 链接库
target_link_libraries(${PROJECT_NAME}  pthread)

# 添加 -lm 链接库
target_link_libraries(${PROJECT_NAME}  m)

# 添加 -ldl 链接库
target_link_libraries(${PROJECT_NAME}  dl)

